<table cellpadding="0" cellspacing="0">
  <tr class="titleTable">
    <th><?php echo $this->Paginator->sort('Empresa Cliente'); ?></th>
    <th><?php echo $this->Paginator->sort('Saldo Actual($)'); ?></th>
    <th><?php echo $this->Paginator->sort('Direccion'); ?></th>
    <th><?php echo $this->Paginator->sort('Email'); ?></th>
    <th><?php echo $this->Paginator->sort('Telefono'); ?></th>
    <th><?php echo $this->Paginator->sort('Cuit'); ?></th>
    <th class="actions"><?php echo __('Opciones'); ?></th>
  </tr>


 <?php foreach ($clientCompanies as $clientCompany): ?>


    <tr>
      <td>
        <?php echo $this->Html->link(h($clientCompany['ClientCompany']['social_razon']), array('action' => 'view', $clientCompany['ClientCompany']['id'])); ?>
      </td>

      <?php if ($clientCompany['ClientCompany']['saldo'] >= 0) : ?>
        <td>
        <?php else : ?>
        <td class="negative_saldo">
        <?php endif; ?>

        <b> <?php echo h($clientCompany['ClientCompany']['saldo']); ?> </b>  &nbsp;

      </td> 
      <td><?php echo h($clientCompany['ClientCompany']['address']); ?>&nbsp;</td>
      <td><?php echo h($clientCompany['ClientCompany']['email']); ?>&nbsp;</td>
      <td><?php echo h($clientCompany['ClientCompany']['phone']); ?>&nbsp;</td>
      <td><?php echo h($clientCompany['ClientCompany']['cuit']); ?>&nbsp;</td>

      <td class="actions">
        <?php echo $this->Html->link(__('Detalle'), array('action' => 'view', $clientCompany['ClientCompany']['id'])); ?>
        <?php echo $this->Html->link(__('Editar'), array('action' => 'edit', $clientCompany['ClientCompany']['id'])); ?>
        <?php echo $this->Form->postLink(__('Borrar'), array('action' => 'delete', $clientCompany['ClientCompany']['id']), null, __('Realmente desea borrar la empresa %s?', $clientCompany['ClientCompany']['name'])); ?>
      </td>

    </tr>
  <?php endforeach; ?>
</table>
<p class="paginator_footer">
  <?php
  echo $this->Paginator->counter(array(
      'format' => __('Pagina {:page} de {:pages}, viendo {:current} resultados de un total de {:count}')
  ));
  ?>	</p>
<div class="paging">
  <?php
  echo $this->Paginator->prev('< ' . __('anterior'), array(), null, array('class' => 'prev disabled'));
  echo $this->Paginator->numbers(array('separator' => ''));
  echo $this->Paginator->next(__('siguiente') . ' >', array(), null, array('class' => 'next disabled'));
  ?>
</div>